package com.xie.test;

import org.apache.commons.lang3.StringUtils;

import javax.xml.bind.ValidationException;
import java.time.LocalDate;
import java.util.Objects;

/**
 * @author xiezhendong
 * @date 2021/11/2
 */
public class test3 {

    public static void main(String[] args) throws ValidationException {

        int year = LocalDate.of(2021, 4, 1).getYear();
        System.out.println(StringUtils.substring(String.valueOf(year), 2, 4));
        System.out.println(StringUtils.substring(String.valueOf(year), 2, 3));

    }
}
